package b6.vacancyshare.activity;

import b6.vacancyshare.R;
import b6.vacancyshare.database.DBUserAdapter;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MenuDaftar extends Activity {
	TextView login;
	Button signUpButton;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.signup);
        
        final TextView txtUsername = (TextView) findViewById(R.id.UsernameTFSignup);
        final TextView txtPassword = (TextView) findViewById(R.id.PasswordTFSignup);
        login = (TextView)findViewById(R.id.Login);
        signUpButton = (Button)findViewById(R.id.SignupButton);
        final Intent route1 = new Intent(this, b6.vacancyshare.activity.MenuLogin.class);
        
		login.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route1);
			}
        	
        });
		
        signUpButton.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route1);
				/*String username = txtUsername.getText().toString();
				String password = txtPassword.getText().toString();
				
				DBUserAdapter dbUser = new DBUserAdapter(MenuDaftar.this);
				dbUser.open();
				dbUser.AddUser(username,password);
				dbUser.close();*/
			}
        	
        });
        
    }
}